package com.pwser.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.pwser.rule.ProviderRuleConfig;

@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "springcloud-provider", configuration = ProviderRuleConfig.class)
@EnableFeignClients(basePackages = { "com.pwser.common.interf" }) // 指定feign接口所在的包路径
@ComponentScan(basePackages = { "com.pwser.common", "com.pwser.consumer" })
public class SpringcloudConsumerFeign80Application {

	public static void main(String[] args) {
		SpringApplication.run(SpringcloudConsumerFeign80Application.class, args);
	}

}
